{% extends 'thesis_review/base.html' %}

{% block title %}用户登录{% endblock %}

{% block userinfo %}
	<div class="container">
		<div class="row">
			<div class="col-xs-12 col-sm-8 col-md-6 col-sm-offset-2 col-md-offset-3">
				<form action="{% url 'login' %}" method="post" role="form">
					<h2>Sign In</h2>
					<ul>
						{% for key, error in errors.items %}
							<li><span style="text-align: center; color: #953b39;">{{ error }}</span></li>
						{% endfor %}
					</ul>

					{% csrf_token %}


					<div class="form-group">
						<input type="text" name="username" id="username" class="form-control input-lg"
							   placeholder="Name"
							   tabindex="1">
					</div>

					<div class="form-group">
						<input type="password" name="password" id="password" class="form-control input-lg"
							   placeholder="PassWord"
							   tabindex="2">
					</div>

					<div class="checkbox">
						<label>
							<input type="checkbox" value="remember-me">记住我
						</label>
						<a href="#">忘记密码?</a><br>
					</div>

					<div class="row">
						<div class="col-xs-6 col-md-6">
							<input type="submit" value="登录"
								   class="btn btn-primary btn-block btn-lg" tabindex="3">
						</div>
					</div>

				</form>
			</div>
		</div>
	</div>
{% endblock %}